Sunday, 15 September 2013

excel vba - Visual basic delete duplicates keep unique -


Prior to placing rows with

is trying to delete rows with duplicate cell materials and unique values ​​.:

  R1A2AR3BR4CR5C  

In this scenario, only B is unique, both A and C are not unique Because they are more than once. (Most search solutions duplicative incorrectly found by thus creating unique values ​​& amp ;. b)

This is not a good place to ask for codes only. If you display your efforts, then someone will probably show you how to solve your problem. Finding code that is almost identical to the code you need here without trying to optimize the code that does not count as an attempt for most people.

You need to consider how the code you have designed your solution to consider the slots There are several ways for a good design in that design, but I usually recommend asking people by asking myself: "How do I manually do this?"

In your example list, the rows are sorted on the target column. Is this true about actual figures or can you sort the actual data through the target column?

The problem may be more difficult so that the data are not sorted and can not be sorted, although not impossible in this situation, I Sujaunga:

  1. Find an empty column on the right side of your data.
  2. Fill that column with row numbers.
  3. Sort by target column.
  4. Shown below.
  5. Delete the columns of the row number sorted by the row number
  6. . Delete the duplicate as

The algorithms assume that the rows are sorted.

If you were to delete rows, you will probably start at the top would mean that every time you need to include all the rows in each row of the cleared a few lines, then you Will decide later on. It's fast to start from below. I suggest you do something like this:

  Set the Stop Line Number RowCront & gt; 1 If RowCrnt The goal of the column column is equal to the target RowCrnt -1 then got 'is set to delete the bottom row of a block RowBlockBottom = RowCrnt RowCrnt = RowCrnt - 1 Do While RowCrnt column is equal RowBlockBottom column RowCrnt to target = RowCrnt - 1 loop RowCrnt + 1 RowBlockBottom Delete 'RowCrnt points rows in the front row or RowCrnt = RowCrnt be matched up against the line - one end of the loop  

Try "Run" on the above pseudo code on paper Think of Code Look for any deliberate or accidental errors It's an easy-to-use design that works for the most simple problems. If you can master this technique then you will be prepared to deal with many problems in future without the need of help.

I hope that the code you got will be included in the statements that will do everything in the above pseudo code. Try to create the necessary macros by changing the pseudo code with relevant statements Do not forget to save a copy of your data before the macro trial.

If the code does not work as you require and why you can not see it, post it here together it does what it does and you want to do it Interpretation of separation between Someone will help.

Good luck.


I want Text Editor in asp.net MVC? -


I have a project in which I will read the MS-Word file and retrieve the text from the file and then this feature will allow user text To edit and then save it, I have read the file and have to successfully remove the text using Open XML. My question is how can I put some text in some editors (some editors are required) and when the user edits or does anything, how can I get the text from the text editor and save it .

I have used TinyMCE in ASP.NET with the best answer: try it here:

In addition to this, you can also use it:

Both will allow you to submit text with the same format, the word is in the document.


asp.net - Modification of the language dates on a website -


I am currently developing a website with ASP.NET where I need to display dates.

Website hosting is in Windows when I test my website in local (on my personal computer with blue emulator), the dates are displayed in French (and this is what I want). But, when I publish and test on Azer, the dates are displayed in English. It is a recent problem, it was working a few days back.

I have not worked on the dates myself, but some packages have been updated on computers configured in English (by nuget package manager) I do not know that this could have an effect.

You need to set your current culture thread. This is the default for you locally for French, but when it's in blue, then default is N-US

How to set culture, or just an example to override the date format See for


c - Make a file availabe on all nodes -


I am writing an MPI application that takes a filename as a logic and from a file using regular C functions Tries to read I run this application on several nodes of cluster using qsub , which in turn uses mpiexec .

This application runs fine on the local node where I have to file directly to mpiexec :

  mpiexec -n 4 ~ / My_app ~ / input_file.txt  

But when I submit it to qsub to run on other nodes of the cluster, the part of reading the file fails . Errors of the application on the fopen call - this file can not open (likely because it does not exist).

The question is, how can I make the file available to all the nodes? I looked at the qsub manpage and did not fix anything.

I think the vanilla gorilla does not need any more answers? However, let's consider the case of a pathological system, which does not have any parallel file system and the file system available only on one node. To achieve its goal there is a way in ROMIO (a very common MPI-IO implementation):


iOS Swift :How to port the following Objective C method to Swift? -


I am learning swift and trying to know all the loops and know about it.

This objective is trying to port the code into Swift.

  NSInteger sort (id num1, id num2, void * context) {int v1 = [num1 intValue]; Int v2 = [num2 intValue]; If sending (v1 and lieutenant; v2) NSordadding; Else if NSOrderedDescending (v1> v2); Others will return NSOrdered; }  

This is what I have not yet done.

  Function type (num1: AnyObject, num2: AnyObject, context: zero) - & gt; NSInteger {var v1: Int = num1.integerValue var v2: Int = num2.integerValue if (v1 and lt; v2) {return nsord ordering} and if (v1> v2) {return NSOrderedDescending} else {return NSOrderedSame}}  

There is a problem with this method NSOrderedAscending is not in existence and I believe that I have the legal name all wrong. Any tips or suggestions are appreciated.

There are issues that do not despise a straightforward harbor.

For one thing, the object-C code says the intValue method on the object. This indicates that the object to be passed to the function is expected to be the NSString example, so the swift function should actually take the NSString argument, not AnyObject argument (unless the function actually can not take any type of object, see the note below in that case). Also, the reference argument is not being used at all, so it is not really necessary. Also, the type of return is actually nscimpression result , and not NSInteger . Given this, the Swift version will look something like this:

  Fun sort (num1: NSString, num2: NSString) -> NSComparisonResult {v1 = num1.intValue v2 = num2.intValue if v1 & lt; V2 {return NSComparisonResult.OrderedAscending} and if v1 == v2 {NSComparisonResult.Same} and {NSComparisonResult.OrderedDescending}}  

If SWIFT version actually does Need to work on any type of object, it would be better to use conditional artists:

  Joy sort (num1: AnyObject, num2: AnyObject) -> ; NSComparisonResult {if let's n1 = num1? NSString {if let's say n2 = num2? NSString {let v1 = n1.intValue v2 = n2.intValue if v1 & lt; V2 {return NSComparisonResult.OrderedAscending} and if v1 & gt; V2 {return NSComparisonResult.OrderedDescending}}} NSComparisonResult.Same}  

ruby - Passing success and failure handlers to an ActiveJob -


I have an ActiveJob which is to load a piece of data from external system from HTTP. When that work is done, I want to do another task which does postprocessing and then submits the data to a different external system.

I do not want the first job to know about other jobs, because

  • reusable
  • none of this first job business Not even, basically
  • Similarly, if I fail to load the data - maybe the user be notified, then maybe we will have to Try, maybe we log in it and throw your hands - still it is different depending on it It is possible. There is no need to include the explanation of the exception, and the logic for the job, which connects with other systems to handle it.

    In Java (where I have most experience), I can use some like guava to add success and failure callback after the fact:

      MyDataLoader loader = New MyDataLoader (someDataSource) ListenableFuture & lt; Data & gt; Future = executor submit (loader); Futures.ADClack (Future, New Future Callback  () {Public Results at Zero (Data Result) {Process Data (Results);} Public Zero (Throwable) {handleFailure (t);} at zero; });  

    However active job does not provide this type of external callback mechanism - the best I can do in "active work default", after_perform and rescue_from are only for calls from within the job class and after_peform is not to distinguish between success and failure.

    So the best I have been able to come up with (and I am not claiming this very good) is to pass some commodity into the job's display method , As follows:

      class MyRecordLoader & lt; ActiveJob :: Base # The cost of the load data (hopefully on the background queue) and #define the result, or any exception to the appropriate Lambda near # # @PRAMData_Source [String] url # @PRAM to load data from ONSUVE [- & gt; (String)] A lambda which will be recorded # data, if it has been successfully loaded # @Only on_failure [-> (Exception)] A lambda that will be passed to any # exception, if a DRF display (data_source, on_suse, on_fileer) starts, then result = load_data_expensively_from data_source on_success.call (result) rescue = & gt; Exception on_failure.call (end)  

    (Side note: I do not know what yardoc syntax is to declare lambda as a parameter. Is it true, Or,

      MyRecordLoader.perform_later (some_data_source, method (: process_data), method (: handle_failure)) 

    < P> Code>

    This is not the least awesome on the calling side, but it seems to be clunky, and I can not help but suspect it for There is a similar pattern I just do not search And I am worried that, as a Ruby / Rail novice, I am only bending to active Job, which was not meant to be done in the first place. All the active examples are getting me 'fire and mistake' - asynchronous form The result of "returning" does not appear in the case of an ActiveJob use.

    In addition to this, it is not clear to me that

    What's the Ruby Way?


    Update: As the dre-hh, ActiveJob did not get the right tool here. It was also unbelievable, and more and more for the situation. I switch in return, which improves the case of use, and the work that is mostly IO-bound, is also fast enough on MRI.

    ActiveWeb does not have an async library like a future or promise.

    This is the only interface to work in the background. The current thread / process does not get any results from this operation.

    For example, when the Sidekick is used as the Active Job Queue, it will serialize the parameters of the display method in the Radius Store. Another demon process running in the context of your Rail app will be looking at the queue queue and will prompt your workers to start with serialized data.

    Therefore the callback pass may be fine, however, why should they take it as another category. On passing the callback, it will understand whether they are moving (turning on different invitations) However, as you have implemented them on the calling class, consider moving those methods to your job worker class only. Please.


    html - Using model attributes in a th:href link -


    Is there a way to refer to a model attribute in the th: href link? For example

      & lt; A th: text = "$ {currentUser}" th: href = "@ {/ user / {currentUser}}" & gt; & Lt; / A & gt;  

    Here, currentUser is a model variable specified in a controller. It can be seen in the th: text tag. However, th: href thymeleaf parsing fails If there is a way to refer to a model feature like this, in th: href ? For reference, this is a Spring MVC (bootstrap) application with Thiamelfl support. Model Variables in th: href You can call it $ { ...} to be included with the indicator, you can add the pipe easily by adding:

      & lt; A th: text = "$ {currentUser}" th: href = "@ {| / user / $ {currentUser} |}" & gt; & Lt; / A & gt;  

    Official document on url syntax.


    Updating Sql from Data in the List C# Console -


    I am running a query and putting that data in the list, now I want to run an update query on SQL Want data in the list

      console. WrightLine ("The SQL connection is fine"); Connection.Open (); Console.WriteLine ("opened"); String SQL = "Choose GUID, where to send GUSMStID from SMS_Table & lt; GETDATE () and status = 'active' and SMSType = 'MMS'"; (Var command = New SQL Commands (SQL, Connection)) using (var reader = command.ExecuteReader ()) {when (reader.Read ()) {var SMSlist = new SMSList (); SMSlist.GUID = Reader ["GUID"]. ToString (); SMSlist.GUSMSID = Reader ["GUSMSID"]. ToString (); Console.light line ("receiving sms ...", console caller.blue); ListofSMS.Add (SMSlist); } Console.WriteLine ("Receiving Full SMS", Console Color.Cyan);  

    So I set the GUID to the list. Now I want to update SMS_table using those GUIDs, how to do it

    You can use SqlCommand for inserts / updates using the ExecuteNonQuery () method.

      SQL command command = new SQL command (); (Int i = 0; i  

    Above is a really simple SQL update statement that you can run on your table. You can manually write your insert / update statement in SQL and execute them in the above manner. There may be a syntax error in my SQL, but the above version should give you a general idea of ​​what you have to do.


    node.js - NodeJS + Passport - Different Logins -


    I have two different "users" (more tables, because these two groups are completely different things): users and entities . At the same time, both can be entered. But there are different restrictions on different pages.

    According to this discussion, managing an authentication type is easy. But how do I go about allowing two different types of?

    I am basically working with req.isAuthenticated () always true when there is any type of log, which is not obvious What i want

    Thanks,


    Serving a processed template file in Ansible -


    I have the following scenario. I have a template with some placeholders. I also have data to fill in a yml file is. These two come from two different sources, however, I hope that the template is responsive to the template, i.e. fill out the template file with the contents of the yml file and then copy / copy the file to the host. Is it possible in Ansible?

    It's okay how to use for the module.


    javascript - Uploading both data and files in one form using Ajax? -


    I am using jQuery and Ajax for submitting data and files, but I'm not sure How is that both data sent and file is in one form?

    I am currently equally agreeing with both methods, but the way the data is gathered in an array is different, the data usage is . Serialize (); but use the file = new form data ($ (this) [0]);

    Is it possible to add both methods to be able to upload the same file and data?

    Format data through jQuery, Ajax and html

      $ ("form # data"). Submit (function () {var FormData = $ (this) .serialize (); $ .ajax ({url: window.location.pathname, type: 'post', data: formdata, async: wrong, success: work (data ) {Warning (data)}, cache: incorrect, content type: wrong, process data: wrong}); return back;}); & Lt; Form id = "data" method = "post" & gt; & Lt; Input type = "text" name = "first" value = "bob" /> & Lt; Input type = "text" name = "medium" value = "james" /> & Lt; Input type = "text" name = "last" value = "smith" /> & Lt; Button & gt; Submit & lt; / Button & gt; & Lt; / Form & gt;  

    Files jquery, ajax and html

      $ ("form # files"). Submit (function () {var FormData = new form data ($ (this) [0]); $ .ajax ({url: window.location.pathname, type: 'post', data: formadata, async: fraud, success : Function (data) {warning (data)}, cache: wrong, content type: incorrect, process data: wrong}); return returned;}); & Lt; Form id = "files" method = "post" enctype = "multipart / form-data" & gt; & Lt; Input name = "image" type = "file" /> & Lt; Button & gt; Submit & lt; / Button & gt; & Lt; / Form & gt;  

    How can I combine the above so that I send data and files in a form through AJAX?

    My goal is to be able to send this form in a post with Ajax, is it possible?

      & lt; Form id = "datafiles" method = "post" enctype = "multipart / form-data" & gt; & Lt; Input type = "text" name = "first" value = "bob" /> & Lt; Input type = "text" name = "medium" value = "james" /> & Lt; Input type = "text" name = "last" value = "smith" /> & Lt; Input name = "image" type = "file" /> & Lt; Button & gt; Submit & lt; / Button & gt; & Lt; / Form & gt;  

    The problem was that I was using the wrong jQuery identifier

    PHP + HTML

    Together upload data and files > & lt;? Print_r ($ _post); Print_r ($ _ files); ? & Gt; & Lt; Form id = "data" method = "post" enctype = "multipart / form-data" & gt; & Lt; Input type = "text" name = "first" value = "bob" /> & Lt; Input type = "text" name = "medium" value = "james" /> & Lt; Input type = "text" name = "last" value = "smith" /> & Lt; Input name = "image" type = "file" /> & Lt; Button & gt; Submit & lt; / Button & gt; & Lt; / Form & gt;

    jQuery + Ajax

      $ ("Form # Data"). Submit (function () {var formData = new formata (this); $ .ajax ({url: window.location.pathname, type: 'post', data: formdata, async: incorrect, success: function (data) { Alert (data)}, cache: incorrect, content type: wrong, process data: wrong}); return;});  

    Short Version

      $ ("Form # Data"). Submit (function () {var formadata = new form data (this); $ .post ($ (this) .attr ("verb"), formadata, function (data) {warning (data);}); return; });  

    If I change the character set of a MySQL database, do I need to modify Ruby clients? -


    I have a collection of Ruby scripts that use my MySQL database. I need to modify the character set for this database, especially to replace tables from Latin 1 to UTF8. Do I need to modify my scripts? I have seen and I think that I can set the character set for a connection, is it mandatory?

    I do not need to make any adjustments to my hesitation in thinking, considering how the character sets have already been set:

    mysql> Show characters like "% Char%"; + -------------------------- + ---------------------- --------------------- + | Variable_name | Price | + -------------------------- + ---------------------- --------------------- + | Character_set_quine | UTF8 | | Character_set_connection | UTF8 | | Character_set_database Latin 1 | Character_set_file system | Binary | | Character_sat_resests | UTF8 | | Character_set_services | Latin 1 | Character_set_system | UTF8 | | Character_sets_rate | /rdsdbbin/mysql-5.6.21.R1/share/charsets/ | + -------------------------- + ---------------------- --------------------- +

    Will not suggest that the customer is already using a UTF 8 character set Have you set up?

    MySQL manages the encoding and per-column per customer. This means that every column in which the text is stored has an encoding setting, and each connected client has an encoding setting differently. Text encoding will be changed necessarily as a flight between the two if a client sends an SGIS column to store UTF-8 data, MySQL will automatically create that conversion automatically ( And the way to retreat).

    In this way, it only really counts the client's encoding when it connects to the database. If you are not explicitly specifying this in your Ruby code, you will receive an implicit default setting. Changing the encoding of a MySQL column will not modify this default encoding. Like: Do nothing.


    ios - When/How does a UITextView become a First Responder? -


    I am new to iOS development and recently it has come to know that we always resign to make the on-screen screen disappear FirstResponder lecture philosophy should deliver The reason for this is the reason behind leaving the first reaction to the text scene, and therefore the keyboard disappears, because there is no need to answer the text view

    although I have also noticed That is the first responder method to create a first answering answer. However, this method is never called on the text view.

    My theory is that when no method is ever called (at least, by me) Before he can resign the first responder status, he is already the first responder.

    the first resconder status is automatically controlled for you when a user Taps on the text field. As long as the user interaction is enabled for UITextField / UitextView , the keyboard should be visible when the tape is done.

    You can monitor it by using the delegate method textViewDidBeginEditiing or more broadly, keyboard appearance notifications ( UIKeyboardWillShowNotification and UIKeyboardDidShowNotification ) for listening.

    In addition to this, the relevant method before rear ponders (like calling a container view or setting a UIScrollViewKeyboardDismissMode of a scroll view Ways to sack without keyboards)

    Note : In the simulator, it is possible that the keyboard still does not appear, even though these are all working properly. In this case, you want to make sure that Keyboard hardware has been toggled for simulator (CMD + K)


    Get permission bits string on Linux/Perl? -


    इस सवाल का पहले से ही एक उत्तर है: < / P>

    • 1 जवाब

    मैं एक खोल लिखना चाहता हूँ / पर्ल स्क्रिप्ट जो कि एक फाइल को विशेष अनुमति बिट्स सेट की जांच कर सकते हैं।

    उदाहरण के लिए, मैं यह जानना चाहता हूं कि किसी फ़ाइल की अनुमति है जैसे

      drwxr-s ---  

    जब मैं पर्ल में stat फ़ंक्शन, यह मुझे एक दशमलव संख्या देता है। क्या ऐसा कोई तरीका है जो मैं अपने पर्ल स्क्रिप्ट में ऊपर की तरह सटीक स्ट्रिंग प्राप्त कर सकता हूं और इसकी तुलना कर सकता हूं? अगर नहीं - उस स्ट्रिंग को किसी संख्या में कनवर्ट करने और उसके बाद तुलना करने का कोई तरीका क्या है?

    क्यों नहीं अपने डेनिमियल नंबर को द्विआधारी फॉर्म में परिवर्तित करें और द्विआधारी और या एक्सओआर का उपयोग करें?

    यह कोड आपको बाइनरी अनुमति देता है:

      printf '% b', (stat 'filename.txt) ') [2] और amp; 07,777;  

    उदाहरण के लिए, -आर-आर ---- बाइनरी फॉर्म 110100000 होगा।


    java - How to perform big numbers mathematic in Android? -


    I am trying to do this operation on two numbers, but get the number format exception: invalid int: "X " how can I do this ?

    $ hash = $ orderdid * 3; $ Hash = $ hash + 15; $ Hash = $ hash $ userid; $ Hash = $ hash - 120; $ Hash = $ hash / 5; $ Hash = $ hash $ userid; $ Hash = $ hash - 174;

    The order ID is 1426518618 and UserID 9965 is

    EDIT: This is the PHP code, but there is no difference between this and java except (and) is! This means that two numbers are for example X = 22 and Y = 33 then XI mean 2233

    This is my code which gives me an error:

      GetHash private string () {Long hash = 0; Try {hash = (integer. PRIINIT (MORIDIDID)) * 3; Hash = hash +15; String temp = string.value (hash); Hash = integer.center (temp + MyAccountAdapter.mEditItems.getID ()); Hash = hash-120; Hash = hash / 5; Temp = String.valueOf (hash); Hash = integer.center (temp + MyAccountAdapter.mEditItems.getID ()); Hash = hash -174; } Hold (NumberFormatException e) {e.printStackTrace (); } Return String.valueOf (hash); }  

    Thank you in advanced

    Can be used . This size is 2 ^ 64-1. You can read more here: When You Long If you want to use parcelong (), then you integer The integer is the wrapping class for the primitive int and for the prolonged primitive long, read more here: way2java.com/java-lang/wrapper-classes


    How to remove all elements with the same key in JavaScript object -


    I am working in JSON data in a JavaScript object like this:

     

    and I want to delete state data, so it ends in this way:

      var data = ["City": "New York"}, {"City": "Fargo"}, {"City": "Los Angels "}];  

    Currently I am looping through it and removing it but is there no way to remove the object from the city?

    I found the "Delete" operator ("Deletes the property off the operator operator object."), But it seems that there is only one item with that property, not as a globally but an example item.

      delete object ["state"] // Edit  

    Edit: My bad I copied / pasted and edited incorrectly. I changed the original polywood, as in the format given in reply to Mr. Polywill Has been used.

    EDIT: Finished using the map method suggested by McEnz. The use of the map allows a certain key / value pair (like city) to be drawn from one array to another. You can also drag several types of

      newData = data .map (function (v) {return {city: v.City, State: v.State};});  

    This will work for my purposes and will be better because I am keeping the minority of the key / value pairs. However, it does not appear that there is no solution to work in the original question. For example, if you have 100 different key / price pairs per array item, then you have to add a new array from 99, rather than instead of removing one of the existing ones

    You should convert your data into an array of objects and should just work on the array. The example given below uses an array.map to return an array with state properties absent. However, there are many ways of this cat to skin.

    (edited to display a filtering prefix before the map)

      var data = []; Data.push ({"City": "New York", "State": "New York"}); Data.push ({"City": "Fargo", "State": "North Dakota"}); Data.push ({"City": "Los Angeles", "State": "California"}); Var new data; NewData = Data .filter (function (v) {return v.state! == 'california';}) .map (function (v) {return {city: v.City};}); As the others have indicated, you may not have duplicate properties in your JSN object. Your data is in an array, not in a monster object. 


    java - JSP--how to get request parameter -


    I have login.jsp which passes index.jsp with username and password parameters. How do I get these parameters in index.jsp? Calling Index.jsp is a post request.

    Actually there is no java man ... thanks

    you do this Can!

      public string getLoginForm (@RequestParam string username, @RequestParam string password) {// ....}  

    hh!


    c# - Lync 2013 client, ExtensibilityWindow does not open when 2 incoming AV calls -


    I'm having some trouble using the Lync2013 client SDK. This is a small thing, but it works just in my head should do.

    I am creating an application that shows some caller data using extensibility wands. On application startup, I register the application etc. and on an approved call, the program starts calling. It works fine in almost all cases, however, as I can now tell when it does not work, then there is a specific scenario: when a new incoming AR calls is present, when it is activated (inhaled Or does not matter) Incoming call

    (So the caller tells me, I accept and while on the phone, the caller B. tells me. Then the function BeginOpenExtensibilityWindow does nothing Is)

    if Out of one is outbound, there is no problem, but when both are within, then start the call OpenAnsignability window passes without doing EndOpenExtensibilityWindow does not raise any errors, it just passes

    Detect I could try the following for the problem.

    • Retrieving ConversationWindow has no caching: Every I need it, I call Automation.GetConversationWindow (conversation)

    • BeginOpenExtensibilityWindow Delayed call:. Start a background thread, wait for 5 seconds after connected and then call it

    • BeginOpenExtensibilityWindow before closeExtensibilityWindow Calling

    < P> What I found: When Calling CloseExtensibilityWindow before BeginOpenExtensibilityWindow the first conversation raises an error. The second, however, is not, instead, the calling expansion closes the expandable window of the first conversation to Wando !!! I am 100% confident that I am retrieving the context of the second window by calling automation. Gate convertion window (_conversation), '_conversation' with the second call!

    Call to window, therefore:

      Internal ConversationWindow ConversationWindow {{get _window = _automation.GetConversationWindow (_conversation); DebugA.Add (String.Format ("ConvId: {0}, WinHandle: {1}", _conversation.Properties [Microsoft.Lync.Model.Conversation.ConversationProperty.Id], _window.Handle); Return_windows; }}  

    With the debug being a stable list,

    Absolutely, sigh ..., the conversation was empty all the time (the root cause of the problem ??) _conversation.GetHashCode (), then the contents of the debug was:

    ConvId: 21950498, WinHandle: 1902160

    ... some of that ...

    < P> ConvId: 13391695, WinHandle: 1902160

    ... some of that ...

    Clearly automation is refunding the same handle for different conversations! Again, it is only on two incoming calls, IM's work is fine and there is no mixed-up reference.

    This seems like a bug to me ... but IM is not an expert ....

    Any help, much appreciated! Forgot to mention

    , it was a bug and Microsoft said it: September 8, 2015 for Lync 2013 Security update (KB3085500) (Skype for business)


    mysql - db.Database.SqlQuery raw data returns stored procedure name and parameters -


    I have a stored procedure that gives a string in 1 row and 1 column.

    I'm using this method to see and return the string as db.Database to the SqlQuery method. However, when I check the return value, it gives the name and parameter of the stored procedure that I am attempting to pass.

      var val = db.Database.SqlQuery & lt; String & gt; (String.Format "{0} @QuestionnaireID", model.ObjectiveB.StoredProcedure.SpName), new SQL parametor ("questionnaire", model.product ID));  

    This is what is back

     Enter the image details here </ p> <pre> <code>. FirstOfDefault () </ code> </ pre> <p> and </ p> <pre> <code> .list () </ Code> </ pre> <p> But still do not return any values ​​that I want, any help of OLL and its parameters in the name of stored functioning will be great! </ P> </ div> <P> <div class =

    Simple answer is something like this:

      var response = db. database base ULF. & Lt; string & gt; ("EXEC procName @ p1 = {0}, @ p2 = {1}, @ p3 = {2}", v1, v2, v3); Var strResponse = resp.First ();  

    Be sure to check the response objects for the first errors.


    jsf - <h:inputText> does not update -


    I have a form and an input text page, which represents the value of bean. At the bottom of the page, I've given a navigation button to go to the next entry:

      & lt; H: form id = "customerdata" & gt; ... & lt; H: output text value = "# {customeredit.customer.name}" /> & Lt; Br / & gt; & Lt; H: InputText size = "60" id = "name" value = "# {customeredit.customer.name}" /> ... and & lt; / H: form & gt; & Lt; P: Command Button Value = "Next Customer" Action = "Customer" AJAX = "False" ID = "Next Customer" & gt; & Lt; F: Ultimate name = "linkager id" value = "# {customeredit.nextCustomer.id}" /> & Lt; / P: CommandButton & gt;  

    If I click on the button, the page reloads, then a new customer object loads in the background and all the entries are updated beyond the input text. There is a change in the output text, but the input text always assumes that when it was intended. I also checked with the gates, the prices returned with a change in the gates with new customers, but the value displayed in the input text is always the same.

    It is possible that you can have nesting format (which is in HTML) and In this way both inputs and buttons end up in the same form. Will also submit input fields as well as that button. In either case, for page-to-page navigation, you should enter & lt; P: commandButton & gt; should not be used. Instead & lt; P: button & gt; Use .

      & lt; P: Button value = "Next customer" result = "customer" id = "nextCustomer" & gt; & Lt; F: Ultimate name = "linkager id" value = "# {customeredit.nextCustomer.id}" /> & Lt; / P: button & gt;  

    Do not forget to fix the nested form problem.

    Also see:


    node.js (or nwjs) ftp download -


    New files must be downloaded from the public FTP:

    But I have to break it from the FTP module Can not connect. My code is:

      var url = "ftp://ftp.cmegroup.com/bulletin/"; Var path = requirement ('path'); Var FS = Requirement ('FS'); // var promise = required ('bluebird'); Var Client = Required ('FTP'); Var c = new client (); Var connectionProperties = {host: "ftp.cmegroup.com",}; C.on ('ready', function () {console.log ('ready'); c.list (function (mistake, list) {If (mistake) happens, then list .for (function (element, Index, array) {// ignore directories if (element.type === 'd') {console.log ('directory ignore' element.name); return;} // ungener non pists if path .extname (element.name))! == '.zip') {console.log ('file ignored' + element.name); return;} // Download files c.get (element.name, function (err, Stream) {throwing err; stream; oynes ('close', function () {c.end ();}); stream pip (fs.c ReateWriteStream (element.name));})}});});}); C.connect (connectionProperties);  

    Error:

      Unrecognized error: Connectivity Econfusion 127.0.0.121  

    Why not understand why

    lack of one line

      c.connect (connectionProperties);  

    ios - Can't overwrite UIButton options programmatically -


    Fixed I had to clear the background image of the button in the IB.


    I think there are two buttons, if different images based on the statement should be used. I created buttons in the IB (and their size, set the barriers), but I would like to change their appearance to viewDidLoad I have made a method to handle variations, but unfortunately it does not work . When I run the app, I can login to the appropriate NSLog, but nothing changes. It seems that my setImage: forState: methods can not overwrite the storyboard option Do anyone have an idea what was wrong?

    - (zero) viewDidoadload {[Super Viewedload]; [Self set button layout]; } - (zero) setButtonLayout {if ([[PFUser currentUser] [@ "status"] is EqualToString: @ "active"]) {[self.bttn1 setImage: [UIImage imageNamed: @ "01-normal.png"] forState : UIControlStateNormal]; [Sb.BTN 1 set image: [UIImage imageNamed: @ "01-selected.png"] forState: UIControlStateSelected]; [Sb.btn2 set image: [UIImage imageNamed: @ "02-General Page"] forState: UIControlStateNormal]; [Sb.btn2 set image: [UIImage imageNamed: @ "02-selected.png"] forState: UIControlStateSelected]; NSLog (@ "1.button"); } If ([[Pfusor current user] [@ "status"] extolstration: @ "idle"]) [[self BTN 3 set image: [UIImage image nominated: @ "03-General Page"] Static: UControllStateAnimal]; [Auto BTN 3 set image: [UIImage imageNamed: @ "03-selected.png"] forState: UIControlStateSelected]; [BTN 4 Set Image: [UIImage imageNamed: @ "04-General Page"] forState: UIControlStateNormal]; [BTN 4 set image: [UIImage imageNamed: @ "04-selected.png"] forState: UIControlStateSelected]; NSLog (@ "2.button"); }}

    WillAppear: method to view your initialization with viewWillLoad method. / P>


    Image data lost when sending from android to server c# trough socket -


    I am trying to send an image from an Android client to the C # server but when I received the bytes on the server side , So I get it in several bytes so I have to add arrays in an array. So I use it:

      byte [] _image = append (byteArrayIn); Memorystream ms = new memorystream (_image); Ms.osition = 0; Bitmap backmage = new bitmap (MS, true); Picturebox 1 Hight = return image. height; PictureBox1.Width = Return Image. Wide; Return return revenues;  

    And then:

      Bitmap image = bytereoises (Myabytes); PictureBox1.Image = Image;  

    But when it displays the image, it shows only half as if some data was lost during the process. It gives me this

    I resolved my problem in the end. There was a problem because the operation was in thread and the picture can not be fully processed before displaying.


    Which microcontroller for fast high quality audio switching and playback -


    I am creating a device that will play high quality sound samples and switch between samples in 5 mm When a signal is applied.

    I am after the microcontroller which can allow it - I need a 4 I / O pin to trigger the transistions between the sound as well as for the output pins (s) for the audio The audio files will be 50ms or more but will ideally have enough storage to allow files to be 1 second or more. It will loop the current file until it is asked to make changes. I do not want audiable pops, or there should not be any complicated need to run such files while switching files or other commands like - but it's completely audio gaming and switching.

    I looked at various microcontrollers in the Arduino family, but they do not seem optimal for this purpose - (for arduino mozzi library tried for example, but it is not superb quality). Ideally I can do all of this on the chip (whatever it is, it does not need an ordino) - without the need for external storage or RAM modules. But if it is necessary then I will do it. Its solution is not fit in a 2 cm wide cylinder (but no length deficiency), so it will be ideal - therefore, according to the language of any SD card module or whatever - I am quite new to all of them - but the best Whatever can learn.

    Audio - (44.1kHz CD quality WAV, although obviously, can switch to a different format if necessary) If it is completely impossible to play such a high quality sound - So the quality of sound can be low.

    Thank you for your help

    For a simple application like this, It would be best to use a small ARM Cortex M device to glass the outer SPI flash chip. Most microcontrollers processing power and RAM with flash storage, so results in a state-of-the-art over-power solution keeping it in a chip. Serial Flash Memory is very cheap, easy to use, and you can resize in the future if you have to add more samples.

    If you really want a CD quality for the audio side, then consider getting an external audio deck because I do not know of any microcontroller that integrates the CD quality codec with external DAC is not expensive or expensive to use, but only physical size and BOM costs increase. Many cortex chips have been made in 12-bit DAC, though So much less dynamic range of the audio, you it is suitable for your needs.

    In order to reduce the popcodes and click on the clerks device, enough power for some basic filtering to deal with it Although I suggest against Arduino that you will quickly come up against processing power boundaries and I doubt that you want to plunge into assembler optimization.


    javascript - Instantiate polymer-element only when needed? -


    It seems that if I have & lt; Template id = "{{somecondition}}" & gt; .. & lt; / Template & gt; / P>

    How to do this (indexing and triggering the events of life cycle on only a few things) or do I need to log in Have to Instant Using Javascript?

    Thank you!

    Yes, there are built-in ways in it here,

    In the template, If you are passing some data, give a synthetic template dynamically imported elements in order to ensure that the data is binding after the element is registered. > & lt; Template if = "{{dynamic_element_registered}}" & gt; & Lt; My-dynamic_element categories_globals = {{categories_globals}} & gt; I'm just an unknown element & lt; / My- dynamic_element & gt; & Lt; / Template & gt;

    In prototype:

      dynamic_load: function () {console.log ('dynamic_load'); Polymer.import (['my-dynamic_element.html'], function () {this.dynamic_element_registered = true;} .bind (this)); },  

    doctrine - typo3 flow: variable in repository -


    I want to use a variable in a typo3 flow store.

    $ letters = $ _POST ['some variables'];

    This works with the following stores:

      public function findLetter () {$ characters = $ _POST ['letter']; $ Query = $ this- & gt; CreateQuery (); $ Query-> Match ($ query- & gt; like ('name', $ letters)); Return $ query- & gt; carry about (); }  

    I've read that in the typo 3 flow

    $ letter = $ this-> request-> getArgument ('SomeVariable');

    But this does not work for me; I get the following error:

    # 1: Notice: Undefined property: ...... \ domain \ repository \ MitgliedRepository :: $ request in / var /www/apps/flow/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/..._..._Domain_Repository_...Repository.php Line 96

    line 96 in. The repository is that:

    $ letters = $ this-> request-> getArgument ('letter');

    Does someone know, what's wrong with me?

    I found:

    My administrators now link that:

    / ** * @ Cancel Cancellation * @ Exact String $ Letters * / Public Panel Letter Action ($ letters) {$ this- & gt; View- & gt; Assign ('mitglieder', $ this- & gt; mitgliedRepository- & gt; findLetter ($ Letter)); }

    and my repository looks like this:

      / ** * @ layer string * / public function findLetter ($ letters) {$ query = $ This- & gt; CreateQuery (); $ Query-> Match ($ query- & gt; such ('name', $ letters)) - & gt; Set Ordering (array ('name' = & gt; \ TYPO3 \ flow \ stability \ query interface :: ORDER_ASCENDING);); Return $ query- & gt; carry about (); }  

    asp.net - Using C# code behind to check if the URL contains a key in order to change the page header depending on what the key is -


    I can get one of my pages from different places in the site. Depending on where you are coming from, it may have a URL key, for example, clicking on page 1.aspx on page 1 will take you to page 3.spacks. Clicking on button2 on page2.aspx may also have page 3.aspx but after the page load the final url page 3.aspx? Key = test, while you are clicking on button 1 on page 1.aspx, the URL is only page 3 .aspx.

    I want to use the back code to change the header on page 3.aspx. If there is a key in url on page3.aspx, then I have to say that "it is modified due to the title key." If there is no key in it, then I want to keep it as default. The default is currently the text that says "default header".

    So far, I've added the code which adds a key to the button href attribute. Page 1's button leads to page 3.aspx and page 2's button page 3.aspx? Key = leads to test, and both pages are loaded. But for some reason my code is not working to change the header. What's in my Page_load:

      if (! IsPostBack) {if (Request.UrlReferrer! = Null & amp; (Request URL.AssolutePath Toolless). This includes (" Key = test "))) {PageHeader =" This is modified due to the title key. "; }}  

    It was not working so I tried to remove it from! Put it properly at the beginning of the IsPostBack block and the Page_load method. Instead, I tried to include "(key = ggg") instead, but it was no different. I appreciate any nudge in the right direction

    You request the You can use the .txtstring archive:

      if (request .jQuery string ["key"]! = Null) // do something here  

    or:

      if (! String.IsNullOrEmpty (request.JQueryString ["key"])  

    sql server - SQL like syntax using date YYYY -


    I have been given a part of a project financial reporting system to work. In fact, I'm trying to modify an existing query so that the result can be returned and returned to a field that is a variable date format.

    My query is being sent twice in the YYYY format with any elses code, so 2014 and 2017. In the SQL query below, they are listed as 2014 and 2017, so you can see them in variables Form.

    Fields in databases that come in variable dates form two forms:. YYYYMMDD or YYYYMM

    looks like an existing query:

      select 'Spend' type, in the form of dbo.Department.Description [country name], form of dBO In. As JCdescription.Description, as dbo.Detail.AccountCode [Fin Code], as dbo.JCdescription.ReportCode1 [Start Date Date], dbo.JCdescription.ReportCode2 [phase date end], as dbo As per JCdescription.ReportCode3 [Date of ratification], DB.Ditrate. As the year [transaction year], join dbo.Detail INNER as dbo.Detail.Period [transaction year period], ... ... WHERE (dbo.Detail.LedgerCode = 'jc'). And (dbo.Detail.Year) between '2014 and 2017';  

    Ideally I want to change the last line:

      (like 'dbo.JCdescription.ReportCode2' '[2014-2017]%' )  

    But between 2014 and 2017 it searches all 2,0,1,4,5 points instead of all things.

    I'm sure I should remember something simple here, but I can not find it! I think I can express it differently as 'code' as '201 [4567]%' but this means that 2010-2020 will be the out-of-the-error searches .. and me Which will send an additional function to parse the variables sent, which will be said very much. I did not want to do it, I just need two numbers, as the whole number instead of 4 digits of 2014 and 2017 To be treated!

    MS SQL Server 10.0.5520

    I think that You can use the system function if any of your date columns are given.

    This will allow you to type something that looks pretty much like the following.

      where between the year (MyDateColumn) 2014 and 2017  

    In addition to this, you are using the date column as the data type, They will be for comparable values, and you also need to make sure you need a comparison.

    So assume that you have string values ​​like '201505' dateStringColumn .

      where between dast (2017 and 2017 between 2014) (substring (dateStringColumn, 1, 4))  

    ios - Images from main bundle cannot be loaded in WKWebView(on Device, but simulator) -


    <पूर्व> पथ = NSBundle.mainBundle () दें। बंडलपाथ baseURL = NSURL.fileURL देंथथपथ (पथ) webView.loadHTMLString ( "

    img.png सिम्युलेटर पर लोड किया जा सकता है, लेकिन मेरे आईफोन पर लोड नहीं किया जा सकता है क्या हो रहा है?


    Undefined symbol when importing f2py module, using Python 3 -


    I am attempting to compile at least Fortran 9 subroutine with f2py to use with Python 3 . When I use Python 2.7, but when it is imported into a Python 3 file, I get an error message. I need to work it in Python 3.

    My FORTRON sub-routine:

      By-trial testing (A, B) does not contain any integer, intent (in) :: an integer, intent (outside): : BB = One * 2 End SubRoutine  

    In this way I compile:

      f2py -c test.f90 -m test  
      import test  

    and then get this error:

    P>

      traceback (most recent Call last): The file "& lt; stdin>", line 1, & lt; Module & gt; ImportError: /home/.../hello.so: Undefined Icons: PyCObject_Type  

    I searched for this error, but found nothing that I understand. As @ cedarKey said, I was using the wrong version of f2py.

    Compile problem with F2py3.4 solved.


    python - Run code after objects list is created to alter them -


    After the object is generated, I want to run the code on the object list of ToManyField .

    I have the following code:

      class ResourceB (ModelResource): x = ForeignKey ... y = ForeignKey ... z = ForeignKey ... def alter_list_data_to_serialize ( Change the resources to Resource A (Model Resource): b = ToManyField (ResourceB, 'b', complete = true) ...  

    When I try to access the URI of ResourceA , I think that alter_list_data_to_serialize has not been called at all. Why? How can I change the contents of ToManyField after the creation of dehydration ?


    r - shiny selectInput misorder factor labels on categorical number range in dropbown bec alphabetic -


    नया उपयोगकर्ता

    ड्रॉप डाउन मेनू से select इनपुट में चमकदार ऐप वर्णमाला को स्पष्ट विकल्प देता है मैं निम्नलिखित कोड का उपयोग आईपीईडीएस INSTSIZE (संस्था आकार) के साथ कर रहा हूं, जो स्पष्ट डेटा प्रदान करता है।

    selectInput ("size", "2. इंस्टीट्यूशन आकार चुनें:", as.character (स्तर (as.factor (ipeds $ INSTSIZE)), select = TRUE),

    ऑटो वर्णमाला की सुविधा आमतौर पर मेरे उद्देश्यों के लिए ठीक है, लेकिन संस्था आकार के लिए संख्या श्रेणियों को इस पद्धति का पालन नहीं करते हैं। 5,000 से शुरू होने वाली श्रेणी 1,000 और 10,000 के बीच शुरू होनी चाहिए। लेकिन 1 के बीच 1,000 और 10,000 अंकों की अल्फाबेटिक सॉर्टिंग गलत तरीके से होती है। नीचे चित्र देखें

    यहाँ छवि विवरण दर्ज करें

    मैं selectInput में कैसे निर्दिष्ट कर सकता हूं (या अंतर्निहित डेटा में) आदेश मैं ड्रॉपडाउन मेनू में दिखाना चाहता हूं?

    संपादित करें (स्पष्ट करने के लिए, यह कारक या के साथ एक सामान्य समस्या हो सकती है और इतना नहीं चमकदार :: selectInput , लेकिन मुझे इस पर नियंत्रण रखने के लिए पहले 2 के लिए कोई सबपॉप्शन नहीं मिला।)

    ऑर्डर आपके फ़ैक्टर वैरिएबल के क्रम से निर्धारित होता है mtcars

      x = as.factor (mtcars $ cyl) स्तर (x) [1] "[1]" 4 "" 6 "" 8 "एक्स = कारक का उपयोग करते हुए उदाहरण X, स्तर (x) [c (3,2,1)]) स्तर (x) [1] "8" "6" "4"  

    I need help writing a php file to redirect a html request. -


    This is a difficult problem because it is multi-layered, but I'm sure people can help me.

    Actually, I have an html snippet on my website, which requires the execution of the URL. Instead of writing URLs in space, I would like to get the content of a text file on my server, but I will also add the contents of the other

    Here is the HTML snippet with the line that needs text on the 4th line Is:

      1 ##  

    I hope someone can help me This is very easy, yet disappointing work! Thanks!

    I'm not sure what you are asking, but when you say

    < Pre> "I would like to get the contents of a text file on my server"

    I'm assuming that you have to capture the contents of a file and insert text, that means the JS snippet To automate in?

    Your line of code:

      2 ## & lt; Script type = "text / javascript" & gt; 3 ## MRP Incent ({4 ## 'URL': 'Text Is From File',  

    Potential Solution: Usage

      $ scrape_file Echo = File_get_contents ("the_file.txt or html");  

    The above code will output: This is a test file with test text.

      2 ## & lt; script type = "text / javascript"> # 3 # MRP incentrette ({4 ## 'url': '& lt ;? = $ Scrape_file? & Gt;',  

    arrays - SAS Put Certain Row as New Variable Names After Manipulation -


    After importing my CSV data with GETNAMES = NO , I have 59 columns, named VAR1, VAR2. . . VAR59 My first line contains the names that I want for the new variable, but they need to remove special characters and change the spaces to spaces because the SAS does not like spaces in variable names. This is the array I used for that piece:

      data data 1; Set stats (first obz = 7); ARRAY VAR (59) VAR1-VAR59; IF _N_ = 1 DO DO; DO I = 1 to 59; VAR [I] = COMPRESS (translation (trim (ver [ii]), '_', ''), '? ()'); Put VAR [I] =; End; End; Drop Drop; Run;  

    It was working perfectly, but now I have to take this new row to new variable names. I tried a similar array to do this:

      data data 2; SET DATA1; ARRAY V (59) VAR1-VAR59; DO I = 1 to 59; IF _N_ = 1 AND V [I] NE "" Then Call Simut ("Nudem", V [I]); Rename VAR [I] = & amp; NEWNAME; End; Drop Drop; Run;  

    It only names VAR59 because [i] and & amp; NEWNAME is not related to , and it is still not working quite right after any manipulation any suggestions for running a variable? Your primary problem is that you use the macro variable in the data phase that you created. You can not do that, you are also trying to make statements to rename in the data phase; Before the data phase is compiled, you have to define rename , with other identical statements ( keep , drop ).

    You have to type elsewhere - either in a text file, a macro variable, whatever - with this information. For example:

      filename renamef temp; Data_null_; Set myfile (obs = 1); Rename the file; Array type [5 9]; _ _ = 1 for slow (war); [Your code to clean it]; Strut = cat ("rename", woman (var [_i]), '=', var [_i], ';'); Put the strip; End; Run; Want data; Set myfile (firstobs = 2); % Include renamef; Run;  

    There are many other examples on the site and on the web, the word "processing" is the word for it.


    android - How to close google glass Application -


    How can I get back to the Google Glass menu in my application, I use the finish

    My app is voice command, so when I 've done go to the main menu.

    Enter image details here

    Thanks in advance

    I defined this line as this.finishAffinity ();

    End this activity as well as keep all the activities immediately in the current work below which have the same relation. This is usually used when an application can be launched on any other task (such as an ACTION_VIEW of a content type) and the user has used the navigation to carry out the current work In this situation in his own work, if the user navigates to any other activity of another application, then all of them as part of the task switch Ul should be removed from work.

    Note that this conclusion will be thrown away if you are trying to distribute results in previous activity, and if you are trying to do this.


    java ee - cxf jaxrs equivalent of jersey @NameBinding -


    मैं जर्सी के साथ कंटेनररक्वेंस्टफिल्टर एंड amp; कंटेनर रीस्पॉन्सफ़िल्टर के साथ @ नाम बायनिंग।

    अब मुझे सर्वर साइड पर SOAP सेवाओं का उपभोग करने की आवश्यकता है और मैं cxf (ऊंट CxfEndPoint ) का उपयोग कर रहा हूं वही।

    सीसीएफ़ जाक्सर्स लाइब्रेरीज जर्सी जॅक्सर्स के साथ परस्पर विरोधी हैं। तो अब मैंने जर्सी को खत्म करने का फैसला किया है और मैं आरईएस सेवाओं के लिए सीएक्सएफ जाक्सर्स का उपयोग करना चाहूंगा।

    कृपया मुझे यह बताएं कि @ नामबदाने के साथ फिल्टर सीएक्सएफ जाक्सर्स में Cxf के बाद के संस्करणों (जो कि जेएक्स-आरएस 2 का समर्थन करते हैं) में उन वर्गों और एनोटेशन होंगे। धन्यवाद

    ये कक्षाएं मानक जैक्स-आरएस कक्षाएं हैं, और कार्यान्वयन विशिष्ट नहीं हैं। सुनिश्चित करने के लिए CXF 3.x.x 2.7.x हो सकता है (मैं वास्तव में सीएक्सएफ का उपयोग नहीं करता, लेकिन आसानी से जार-जेक्सर्स एपीआई जार निर्भरता देख सकता है)

    नोट: सीएक्सएफ 2.7.x समर्थन जेएक्स-आरएस 2, लेकिन यह एक मील का पत्थर एपीआई का उपयोग करता है निर्भरता। कुछ कक्षाएं वहां नहीं हैं जो अंतिम 2.0 युक्ति में हैं, और कुछ कक्षाएं हैं जो अंतिम विवरण में नहीं हैं तो यह पूरी तरह से शिकायत नहीं है। यही कारण है कि मैंने कहा शायद (और आसानी से जाँच की जा सकती है)। सीएक्सएफ 3.x.x JAX-RS 2.0

    के साथ पूरी तरह से संगत है

    iOS Device not showing for iOS 8.2 and Xcode 6.2 -


    Despite this:

    and restart your Mac Reloading the iOS device I can not see my iOS device in Xcode.

    Any other suggestions?

    Does your device appear in iTunes? If it is not visible then make sure you trust your Mac on your device. If it shows, then try to skip your Xcode completely and copy your device to the deferent port, then open Xcode again. If the problem still persists then you have to restore your encoded


    swift - Get object position relative to it's center, regardless of anchor point used -


    Does any object have any other object center point (centered on object, centered on object) Do not have the way

      see A = UVUV (frame: Object A want to position object B. in between, CGRactMake (0, 0, 200, 400) ViewAllier.TenCorPoint = CGXTax ( 0, 1) See Layer.position.x = 40ViewAller.position.y = 100ViewB = UIView (Frame: CGRactam (0, 0, 80, 20) viewB.layer.anchorPoint = CGPointMake (1, 0.5) // How do the views of ViewB in the middle of the scene, even then what is the reference point of View A? In other words, I'm trying to figure out that someone has an algorithm or system that creates an object's position relative to an object center (between any other objects) Use to be able, whatever the ANC Then point to point or object using that time. 

    Thanks


    r - Does using package generics require the package to be in Depends or Imports? -


    First of all, I have read a lot about this topic. I have studied conversations, and the problem is, though, I still feel that a particular subject has not been fully discussed. I am developing a package and I want to make my own method using autoplot () normal ggplot2 package, such as autoplot.MyFunction Such as a function () .

    Depends in my current DESCRIPTION file: ggplot2 and everything works, there is no problem. I also combine it with Roxygen2 tag @import ggplot2 with the help file code, along with its code, @export . However

    However most documents show that try to use one of the import: ggplot2 . The problem is that if I make this change, when I load my package with the library and try to use autoplot.MyFunction () , Then I have to face with the following error:

      & gt; Autoplot (tmp) error: The function "autoplot" could not be found  

    Similarly, if I call the function directly ...

      & gt; Autoplot.MyFunction (tmp) error: The function "autoplot.MyFunction" could not be found  

    However, if I use the :: method, then it works is .. .

      & gt; Ggplot2 :: autoplot (tmp)  

    In my opinion, it is because import loads to ggplot2 Package (and therefore its function), but not attached , while dependent does attached

    So, My question is simple, am I thinking that the package is correct in using generic, I should use the dependent: package , which means depends on my case: Ggplot2

    of my package function To use the function from the package, I must be paired with import: package with :: , for example:

      Silly_fn & lt; - Function (data) {P < - ggplot (tmp, aes (x, y)) + geom_line () + geom_segment (aes (x = 0, xend = 20, y = 0, << Code>  

    import requirement Will be: Grid :: and a Roxygen2 tag @import grid .

    I think this is all right?

    I am not a full expert on this, but here some works:

      # '@importFrom ggplot2 autoplot # '@export autoplot autoplot & lt; - autoplot #' @export "autoplot.foo" autoplot.foo "- function (obj, ...) {cat (" bar ")}  < / Pre> 

    Unfortunately we need to explicitly export the method Because for some reason S3 dispatch for a reason from a package name space (Ase ggplot2 in this case) does not find the registered method of the package which does not import it, It does not mean that this base works for generics, so S3 is a subtlety of the registration mechanism that I do not understand.

    Re: :: In your package or No, this is for debate if you have a @import or @importFrom There is no need to use, but some (including Headley) you should suggest to clarity. I personally advise against it because the R Profiler style does not resolve the function names of the package :: method , which makes the code harder to optimize (there are ways in which both Can meet the objectives).

    Note that you must use @import and should not depend only on :: (you DESCRIPTION Need to update the file). Failure to do so will prevent me from becoming aware of R-dependence. I'm sure the rmd check yells about it.


    continue the .each() loop in jQuery to show more search results -


    I have search results that I want to break in part. I set 10 results in a .each () loop and Then break the loop in result number 10. If the user clicks on a certain, then the results should be displayed until the 20 results appear. The loop closes correctly, but it does not continue (i.e., show more results), when the button is pressed. To display search results, each (task) {// code} if (index% 10 === 0)) {// loop return false stop; $ ("Button # more results"). Click (function (event) {// continue the loop of each function return;});}}); // End of each function

    You have never added your handler to your click ( ) call after is back , so it has never been executed. Try:

      if (index% 10 === 0) {$ ("button # more results"). Click (function (event) {// // continue the loop of each function return;}); // loop return false stop; }  

    php - issus with emoji in array -


    In this code, when I use ":-)" emoji, I do not see it in the output.

    But when "1f60a" or "1f60c" or "e252" emoji is used, what is the problem?

      & lt ;? Php $ emoji_url = "http://coremobile.ir/images_smileys"; $ Emoji_style = ""; $ Emoji_code = Array (":-)", "1f60a", "1f60c", "e252"); $ Emoji_img = array ('& lt; img src =' '. $ Emoji_url.' / 1f60a.png ''. $ Emoji_style. '& Gt;', '& lt; img src = "'. $ Emoji_url. '/ 1f60a.png "$ .imoji_style. '& Gt;', '& lt; img src ="'. $ Emoji_url. '/ 1f60c.png "' $ emoji_style. '& Gt;', '& lt; img src = "$ .imoji_url. '/ E252.png' '. $ Emoji_style.' & Gt; '); $ Ret =' This test :-) 1f60a '; $ Ret = str_replace ($ emoji_code, $ emoji_img, $ ret) ; Echo $ ret?; & Gt;  

    This should work for you:

    (just use instead, so that it does not go through the string multiple times)

      $ ret = strtr ($ ret, array_combine ($ emoji_code, $ emoji_img)) ;  

    Output:

    This test

    No one else has done the work, because it takes the place of every match for the first replacement and then the second and so on.

    0 replaced:

      This test :-) 1f60a // ^ ^ match  

    ago changed:

      this test & lt; Img src = "http://coremobile.ir/images_smileys/1f60a.png" & gt; 1f60a // ^^^^^ Match ^ ^^^^ Match  

    Second place given:

      This test  

    php - Access denied for 'sec_user'@'localhost' -


    I can not do this work for my life I am running an Apache server, but my local sites Are stored in / www / Matthew / wwwroot / and I'm using them in the browser.

    MySQL is running on a server called 'Matthew.ADU', which is a user with 'Matthew.ADV' with a user called 'sec-user'.

    However, when I'm trying to connect to my database using these credentials, my mistake suggests that the localhost is coming out in drama from somewhere and why I have no clue .

    Here's my psl-config.php:

       

    And here's my db_connect.php:

       MySqli-> Connect_errno. ")". $ Mysqli- & gt; Connect_error; } Echo $ mysqli-> Host_info "\ N"; ? & Gt;  

    Error:

    WARNING: mysqli :: mysqli (): (HY000 / 1045): User denied 'password' for 'sec_user' @ 'localhost' Use: Yes) /www/sites/Matthew/wwwroot/LetsMakePi/includes/db_connect.php Failed to connect to MySQL on line 4: (1045) User 'sec_user' @ Access denied for 'localhost' (password) Using: Yes) Warning: Main (): / 9 / /

    Thanks in advance.

    P> P>

    This is trying to connect to the local host.

    (Edit: More than the point, maybe, it is trying to connect to localhost.)

    Domain name Matthew DW on that host What does it solve? (I have seen lots of / etc / hosts where the local machine is connected with the FQDN 127.0.0.1 (aka localhost).)

    For that matter, why not use local folk? This is the same machine, no? Assign the same privileges to sec_user@Matthew.dev for sec_user @ localhost .


    plsql - Creating table in Oracle then inserting multiple fors with select -


    I'm experimenting with Oracle 11G Todd 10.6. And many secondary tables (which I did not), who joined the rest of the code - I rows to select a statement that the first record of the primary table shown below (the product) will pull insert table I'm trying to make, results filtering

      table making Mjhottemp (Customer ID number (10), CanvCD varchar2 (6), CanvISS number (3)); COMMIT; MJHOTTEMP (Customer ID, canvcd, insert canviss) As DISTINCT r.CUSTOMER_ID select Customer ID, r.CANVASS_CODE as canvcd, r.CANVASS_ISSUE_NUM core.product R  as canviss 
    < p> when I run, I "enter MJHOTTEMP is get an error at line"

      ORA-00942: table or view does not exist  
    < P> See the table in schema. Any idea why this does not work?

    "itemprop =" text ">

    This is usually a permissions error. Verify that the user you are connecting to is selected on core.product table (at least)

    GRANT selected for core.product 'your_user' ;.

    I'm assuming you are choosing custom user can not use functions or other users of proprietary ideas or processes. In this case you may need to select the product at

      core. Products on 'your_user' with reference;  

    stored procedures - How to get a record using a where clause in Oracle? -


    Whenever the process runs, I want to get a record from a table. The process will take an input of a number, say, employee_number and it will return a complete record - which will include, say, employee_name, company, date of joining etc. I usually do not work with processes. I am in analytic SQL

      To create or change process getdetails (search_strin table_name.column_1% type, p_recordset out sys_refcursor), select Open p_recordset for table_name from column 2, column_3 where Column_1 = search_str; Finally getdetails;  

    This should work, is not it? But, I'm getting the following error!

    PLS-00306: 'GET_EMP_RS' contains incorrect numbers or types of arguments in the call

    Assume that the name of your table is EMPLOYEE to do whatever you are asking if you will do something like the following:

      Build or re-implement GET_EMPLOYEE_RECORD (Number of Employee Number) Return Employee% ROWTYPE Row Employee Employee Employee% ROWTYPE; Select from beginning e Employee employee and EFOFEEEEEEEEEE = NEPPF_Number; Return line employee employee; END GET_EMPLOYEE_RECORD;  

    Hope this will get you started.

    Share and Enjoy

    Edit

    If you need to use processes and not a function, then you have to use an output parameter to return your data; In this way, you can do something like:

      Create or process process GEFLOEEEEEECDR (Pin_Emory_Number Number starts job pay-start employee employment) starts. By email and EFOOoOoAMA in pout_Employee_row = pin_impere_number; END GET_EMPLOYEE_RECORD;  

    Then you will be seeing the process from code as follows:

      DECLARE nEmployee_number NUMBER; ROW EMPLOYEES EMPLOYEE% ROWTYPE; BEGIN nEmployee_number: = 123; - or the price you prefer GET_EMPLOYEE_RECORD (pin_Employee_number = & gt; nEmployee_number, pout_Employee_row = & gt; line employees); - Now employees in the row with some staff staff ... END;  

    share and enjoy.


    javascript - setInterval overriding others setIntervals -


    इस सवाल का पहले से ही एक उत्तर है: < 31 उत्तरों

    मैं बनाने की कोशिश कर रहा हूँ / p>

    • अजीब के साथ कोड स्निपेट व्यवहार:

        var टाइमआउट फ़ंक्शन = {}; फ़ंक्शन log_on_console (text) {console.log ('& gt; & gt; फ़ंक्शन के अंदर:' + पाठ)} $ (दस्तावेज़) .ready (फ़ंक्शन () {for (i = 0; i & lt; 5; i ++) { कंसोल.लाग (फ़ंक्शन से पहले: '+ i) टाइमआउट फ़ंक्शंस [i] = सेट इन्टरवल (फ़ंक्शन () {लॉग_ऑन_कॉनोल (आई)}, 2000);}});  
        & lt; script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min कंसोल पर आउटपुट है:  
        "कंसोल पर आउटपुट     
      कार्य करने से पहले: 1 "js: 21: 6" & gt; & gt; & gt; कार्य के पहले: 2 "जेएस: 21: 6: कार्य करने से पहले: & gt; & gt; & gt; फ़ंक्शन: 0" जेएस: 21: 6 "& gt; & gt; "फ़ंक्शन के पहले": "जेएस: 21: 6" gt; & gt; & gt; फ़ंक्शन के अंदर: 5 "(5) जेएस : 16: 2 // (यह एक "समस्या" है)

      मैं इसके बजाय कुछ ऐसा expexcting था:

        "gt; & gt; & gt ; आनन्दटी से पहले; पर: 0 "जेएस: 21: 6" & gt; & Gt; & Gt; कार्य से पहले: 1 "जेएस: 21: 6" & gt; & Gt; & Gt; कार्य से पहले: 2 "जेएस: 21: 6" & gt; & Gt; & Gt; कार्य से पहले: 3 "जेएस: 21: 6" & gt; & Gt; & Gt; कार्य से पहले: 4 "जेएस: 21: 6" & gt; & Gt; & Gt; फ़ंक्शन के अंदर: 0 "जेएस: 16: 2" & gt; & Gt; & Gt; फ़ंक्शन के अंदर: 1 "जेएस: 16: 2" & gt; & Gt; & Gt; फ़ंक्शन के अंदर: 2 "जेएस: 16: 2" & gt; & Gt; & Gt; फ़ंक्शन के अंदर: 3 "जेएस: 16: 2" & gt; & Gt; & Gt; अंदर का कार्य: 4 "जेएस: 16: 2  

      अतः, अंतिम सेट इन्टरवाल (फ़ंक्शन () {log_on_console (i)}, 2000) क्यों ओवरराइड कर रहा है पिछले चार?

    यहाँ फ़ंक्शन:

      टाइमआउट फ़ंक्शंस [i] = SetInterval (function () {log_on_console (i)}, 2000);  

    ... में एक स्थायी संदर्भ को i वेरिएबल, फ़ंक्शन निर्मित होने के समय के रूप में इसके मान की एक प्रति नहीं है। इसलिए यह i मान का उपयोग करता है जब इसे बुलाया जाता है

    यदि आप समारोह बनाते समय समारोह में मूल्य को को जला देना चाहते हैं, तो आप फंक्शन # बाँध का उपयोग कर सकते हैं: <

    या अधिक सीधे अपने अनाम फ़ंक्शन के रूप में सिर्फ log_on_console कॉल कर रहा है:

      टाइमआउट फ़ंक्शन [i] = setInterval (log_on_console .बिंड (नल, आई), 2000);  

    फ़ंक्शन # बाँध एक फ़ंक्शन देता है, जिसे कॉल किया जाता है, मूल कार्य को यह से पहले तर्क के साथ सेट करेगा बाँध , और किसी भी अतिरिक्त तर्क के साथ गुजर रहा है चूंकि आपका फ़ंक्शन यह का उपयोग नहीं कर रहा है, इसलिए मैंने उस कोड के लिए null का उपयोग किया है उदा।:

      फ़ंक्शन फ़ू (a) {console.log ("a =" + a); } Var f = foo.bind (नल, 1); च ();  

    हमें पता चलता है:

     a = 1 

    साइड नोट: आपका कोड शिकार हो रहा है क्योंकि आप < कोड> मैं कहीं भी।


    javascript - Asp.net bootstrap dropdown menu - selecting an item -


    I have a ASP.NET project that uses bootstrap control I have the following bootstrap dropdown menu The programmatic pulls from the database.

    However, when I click on the menu and select an item, then I need that item in the dropdown box clearly. Instead, when an item is clicked, there is nothing different from the dropdown menu.

      & lt; Div class = "btn-group" & gt; & Lt; Button type = "button" class = "btn btn-default dropdown-toggle" id = "merchant list" data-toggle = "dropdown" aria-expanded = "false" & gt; Select Merchant & lt; Span class = "caret"> gt; & Lt; / Span & gt; & Lt; / Button & gt; & Lt; Ul class = "dropdown-menu" roll = "menu" field-labeled = "merchant list" id = "myList" runat = "server" & gt; & Lt; ASP: literal runat = "server" id = "merchantdumpdown" & gt; & Lt; / Asp: literal & gt; & Lt; / Ul & gt; & Lt; / Div & gt;  

    I think some kind of javascript is required to set whatever item is selected in the dropdown menu but I'm not sure how to do this.

    I have tried:

      $ ("# myList li a") Click (function () {alert ('clicked'); var selText = $ (this) .text (); $ (this) .parents ('.btn-group'). ('.downdown-toggle' ) .HTML (seltext + '& lt; span class = "carat"> ;);});  

    Also tried:

      $ ('# myList li a'). ('Click', function () {$ ('# merchantList') .val ($ (this) .text ());});  

    But this is never called. any idea? It would be better if I can do it in the back code as I like to work back there.

    Correct me if I am misunderstanding what you want to do, but you do not have that item Find what they chose and set their CSS class = "active". To find out that the existing items that they select match up to the current page, there are several techniques using the URL.

    Try something like this on your master page:

      var url = window.location; $ ('Ul.nav a [href =' '+ url +' "] '). Parent (). AddClass (' active ');  

    angularjs - Angular js filteration by check box -


    I have to filter the results by check box. Weather ng-repeat has a simulator text value. Here is the code snippet

      $ InArray (names.slotschedule, $ scope.colourIncludes)  

    Is there a function similar? > $ scope.colourFilter = function (fruit) {if ($ scope.colourIncludes.length> 0) {if ($ .inArray (fruit color, $ scope.colourIncludes) & lt; 0 ) Return; }

    need to be filtered by the array in which I give the ng-click example, for example if I pass in 'ng-click' then the parameter is filtered red should go.


    php image generating error cant display because it contain errors -


    I am trying to change the color of a transparent image using the GD library, I am new to the GD library It collects the error Image Cant display because this error holds it is my code to create a png image

       

    If you comment on the header function at the top, you get an error message about Can see that I do not see any error with that code on my image. Is this the whole code and tou tou before creating the image (or after)?


    reshape2 - Reshape with id-variable in column names R -


    इस सवाल का पहले से ही एक उत्तर है: < / P>

    • 5 जवाब

    मैंने आर के साथ काम किया है अभी कुछ समय के लिए, लेकिन नयी आकृति या reshape2 संकुल का बहुत कम उपयोग किया है। मैं वर्तमान में विस्तृत सेट से डेटा सेट को नयी आकृति प्रदान करने की कोशिश कर रहा हूं जहां सूचक चर चर नामों का हिस्सा हैं I यह मेरे डेटा फ्रेम की वर्तमान संरचना है:

      mydf & lt; - data.frame (जिले = सी (1: 2), v.mandate = c (1, 3), s जनादेश = सी (2, 4), v.perc = c (.4, .3), s.perc = c (.5, .6)) gt; Mydf जिला v.mandate s.mandate v.perc s.perc 1 1 1 2 0.4 0.5 2 2 3 4 0.3 0.6  

    मैं इसे लंबे प्रारूप में नयी आकृति देना चाहता हूं और "v । " और "एस।" के रूप में आईडी चर (वास्तविक डेटा में सेट सूची लंबी है)। नीचे दिए गए उदाहरण देखें।

      mydf2 & lt; - डेटा.फ्रेम (जिले = सी (1, 1, 2, 2), पार्टी = c ("v", "s", "v" , "S"), जनादेश = सी (1, 2, 3, 4), perc = c (.4, .5, .3, .6)) gt; Mydf2 जिला पार्टी जनादेश पीआरसी 1 1 वी 1 0.4 2 1 एस 2 0.5 3 2 वी 3 0.3 4 2 एस 4 0.6  

    मैंने दोनों नयी आकृति और पिघल कार्यों का उपयोग करने की कोशिश की है, लेकिन मैं वैरिएबल नामों से सूचक चर को निकालने में प्रतीत नहीं होता इसके बजाय, डेटा सेट को लंबे प्रारूप में फिर से बदल दिया गया है, लेकिन आईडी चर के रूप में पूर्ण चर नामों के साथ। नीचे उदाहरण देखें।

      & gt; पिघल (mydf, id.vars = 1) जिला चर मान 1 1 v.mandate 1.0 2 2 v.mandate 3.0 3 1 s.mandate 2.0 4 2 s.mandate 4.0 5 1 v.perc 0.4 6 2 v.perc 0.3 7 1 s.perc 0.5 8 2 s.perc 0.6  

    यह एक छोटी सी समस्या हो सकती है, लेकिन मैं एक समाधान ऑन लाइन खोज नहीं पाई है।

    किसी भी मदद की सराहना!

    मैं अक्षम हो सकता है, लेकिन ऐसा लगता है कि आपने अपना नाम चरम परिक्रमा क्या हो सकता है (जैसे v.mandate के बजाय mandate.v )। मैंने उनके नामकरण को उलट कर दिया और इसे काम करने के लिए मिल गया:

      mydf & lt; - data.frame (जिला = सी (1: 2), mandate.v = c (1, 3), Mandate.s = c (2, 4), perc.v = c (.4, .3), perc.s = c (.5, .6)) पुस्तकालय ("reshape2") mydf2 = reshape (mydf, अलग = 2: 5, #variables 2: 5 भिन्नता = "लंबे", # कार्यकाल लंबे समयवार = "पार्टी", # समूहिंग चर idvar = "district", #selecting sep = "।") # डॉट्स द्वारा सिलेटेड < / Code> 

    यह देता है:

      & gt; Mydf2 जिला पार्टी जनादेश perc 1.v 1 v 1 0.4 2.v 2 v 3 0.3 1s 1 s 2 0.5 2.s 2 s 4 0.6  

    आपको किसी प्रकार की आवश्यकता हो सकती है पूरे डेटाफ्रेम में नामों को पीछे करने का स्वचालित तरीका। मैंने मैन्युअल रूप से ऊपर किया क्योंकि केवल 4 चर थे यदि आपके पास 100 है, तो इसके लायक नहीं है।


    html5 - how to make the same height of div take a look below -


    Please see the image below, I have tried to make a similar design, but there are some problems in it, Item is low 4 This is currently showing some white spaces under Fidler I .p-group {line-height: 6.2; which is not good for two or more four items, someone used me again code> ul li

      .p to list list items. {Overflow: Hidden; Width: 100%; } .p-left {float: left; / * Background: #fdd; * /} .test {float: left; Background: #sacac; White color; Font-family: "Century Gothic"; Font-size: 14px; } .test: hover {cursor: indicator; Background: # 2F7AC6; } .ht {min-height: 180px; } .p-group {margin-top: 5px; -MMS-transform: rotate (270deg); / * IE 9 * / -mose-transform: Rotate (270 degrees); / * Firefox * / -Widbid-transform: rotate (270 degrees); / * Safari and Chrome * / -O-Transform: Rotate (270deg); / * Opera / Overflow: Hidden; }. P-Right {range: 1px solid #ff; White color; Hidden flurry; Width: 75%; } .p-item {float: left; Width: 100px; } .i-left {overflow: hidden; } .p-item div {border: 1px solid white; Background: #Secca; White color; Font-family: "Century Gothic"; Font-size: 14px; Padding: 2px; } .p-item div: hover {background: # 428ad2; Cursor: indicator; } & Lt; Div class = "p" & gt; & Lt; Div class = "p-left" & gt; & Lt; Div class = "a-left" & gt; & Lt; Div class = "test" & gt; & Lt; Div class = "p-group" & gt; Group & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "p-item" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; Div & gt; B & lt; / Div & gt; & Lt; Div & gt; C & lt; / Div & gt; & Lt; Div & gt; D & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "a-left" & gt; & Lt; Div class = "test" & gt; & Lt; Div class = "p-group" & gt; Group & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "p-item" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; Div & gt; B & lt; / Div & gt; & Lt; Div & gt; C & lt; / Div & gt; & Lt; Div & gt; D & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "p-right" & gt; & Lt; Div class = "ht" & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

    please check it out

      .p {width: 100%; Display: Table; Table-layout: Fixed; } .p-left {display: table-cell; Width: 200px; Background: # 333; Padding: 10px; Color: #fff; } .p-right {display: table-cell; Background: # 666; }  
      & lt; Div class = "p" & gt; & Lt; Div class = "p-left" & gt; & Lt; Div class = "a-left" & gt; & Lt; Div class = "test" & gt; & Lt; Div class = "p-group" & gt; Group & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "p-item" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; Div & gt; B & lt; / Div & gt; & Lt; Div & gt; C & lt; / Div & gt; & Lt; Div & gt; D & lt; / Div & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; Div & gt; B & lt; / Div & gt; & Lt; Div & gt; C & lt; / Div & gt; & Lt; Div & gt; D & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "a-left" & gt; & Lt; Div class = "test" & gt; & Lt; Div class = "p-group" & gt; Group & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "p-item" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; Div & gt; B & lt; / Div & gt; & Lt; Div & gt; C & lt; / Div & gt; & Lt; Div & gt; D & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "p-right" & gt; & Lt; Div class = "ht" & gt; & Lt; / Div & gt; & Lt; / Div & gt;  


    javascript - Use jQuery plugin tablesorter in Yii view -


    I try to include Yii view in the jQuery plugin "I do not like page refreshes in a sortable table and for turning a standard HTML table with the tbody tag".

    I know that CGridView will have a more elegant version to do this in Yii, but in order to get the jQuery plugin to work primarily interested, so far the table is not sorted , Although other jQuery functions (like a pop-up window or toggle button) work.

    Any thoughts that I am doing wrong? This is my idea:

      & lt; Php Yii :: app () - & gt; ClientScript- & gt; RegisterCorScript ('http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js'); Yii :: app () - & gt; Classic Script- & gt; Click the 'Register' button ('Buttile', '$' ('button'). (Function () {$ ('p'). SlideToggle ();}); ", CClientScript :: POS_READY); Yii :: app ) - & gt; clientcript-> RegisterScriptFile ('/ jquery.tablesorter.js'); Yii :: Application () -> clientScript-> RegisterScript ('tablescript', "$ (document) .ready (Function () {$ ('# myTable1') tablesorter () ;.}); ", CClientScript:: POS_READY);? & Gt; & lt ;? php echo" & lt; P id = 'paragraph 1' & gt; This is a paragraph. & Lt; / P & gt; "; echo" & lt; Button ID = 'Button 1' & gt; Toggle between slides and slide down for the P element & lt; / Button & gt; "echo" & lt; Table id = 'myTable1' class = 'tableorter' & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; Last name & lt; / Th & gt; & Lt; Th & gt; First name & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; TD & gt; Smith & lt; / TD & gt; & Lt; TD & gt; John & lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Jones & lt; / TD & gt; & Lt; TD & gt; Martha & lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Noble & lt; / TD & gt; & Lt; TD & gt; Donna & lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Smith & LT; / TD & gt; & Lt; Td> Mikey & lt; / Td> & Lt; / Tr & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; ";; & Gt;  

    Edit: The path should be a problem. When I directly hotlink to jquery.tablesorter.js, it works fine. Can be switched off.


    php - Update data from a form to table -



    php - Update data from a form to table -

    i have form on page gets info table in database. want able alter info in from, , post updates table new information.

    so far got form working, , getting info table displayed in well. can't update info table; press update button, , success reply, info same before. it's not updating - no errors or warnings code.

    this form:

    <span id="main-content"> <?php $sql = "select * settings id=1"; if(!$result = $db->query($sql)){ die('there error running query [' . $db->error . ']'); } if(!empty($_post)) { update_settings($_post['info']); } if ($result = mysqli_query($db, $sql)) { while ($row = mysqli_fetch_assoc($result)) { echo "<form action='' method='post'>"; echo "<label>overskrift</label>"; echo "<textarea name='info' required>".$row['info']."</textarea>"; echo "<input type='submit' value='update'>"; echo "</form>"; } mysqli_free_result($result); } mysqli_close($db); ?>

    and here function sending to.

    //update settings function update_settings($info) { global $db; $query = "update settings set info = '$info' id = '$1'"; $result = $db->query($query); echo "<div class='success wow fadeindown'><b>success:</b> dit oplæg er nu opdateret.</div>"; }

    php mysql forms post

    Securing AngularJS SPA with Spring Security 3.2 -



    Securing AngularJS SPA with Spring Security 3.2 -

    any help, advice , experience welcome.

    im having separate angularjs spa on apache http server , spring backend on tomcat 7 servlet. backend serves rest api spa. rest resources require user have role.

    i've been searching net days on , how implement best security strategy:

    basic auth digest oauth stateless, cookies? sessions? tokens? csrf?

    how go communicating spring security in json or xml spa show user authentication page or "your authenticated page"?

    any help appreciated.

    i figured out how create spa authenticate rest backend.

    in spring security created

    custom simpleurlauthenticationfailurehandler returns http-unauthorizated if login effort fails. custom savedrequestawareauthenticationsuccesshandler returns http-oke if login effort successful. custom authenticationentrypoint returns http-unauthorizated instead of redirect. custom logoutsuccesshandler returns http-ok. i disabled csrf.

    if needs more help sense free allow me know or message me.

    angularjs spring-security

    sql server - Search SQL DB's For A Specific Word -



    sql server - Search SQL DB's For A Specific Word -

    i new sql , have no experience ever in please bear me question.

    i need know if possible search sql database specific word , if how?

    we going through rebranding project , need in our cms (content management system) database reference email address. need search is:

    .co.uk

    below screenshot of database in question containing tables, cant me head around sql , have had no joy on google trying find answer.

    i need search in database don't know tables, views, column names etc content sits in it's spread across them all.

    there other tables need search reply provided can modify search these.

    db's aren't meant such vague search descriptions, should have definition or model or requirement specs describe values exist.

    but of course, opt insanely slow method of doing using dynamic sql.

    i made right fast , tested fast, should work:

    set nocount on if object_id('tempdb..#searchtable') not null drop table #searchtable if object_id('tempdb..#results') not null drop table #results create table #searchtable (rownum int identity(1,1), searchclause varchar(2000) collate database_default) insert #searchtable (searchclause) select 'select top 1 '''+tab.name+''', '''+c.name+''' ['+s.name+'].['+tab.name+'] ' +case when t.name <> 'xml' '['+c.name+'] ''%.co.uk%'' , ['+c.name+'] ''%@%''' else 'cast(['+c.name+'] varchar(max)) ''%.co.uk%'' , cast(['+c.name+'] varchar(max)) ''%@%''' end searchclause sys.tables tab bring together sys.schemas s on s.schema_id = tab.schema_id bring together sys.columns c on c.object_id = tab.object_id bring together sys.types t on t.user_type_id = c.user_type_id tab.type_desc = 'user_table' , (t.name '%char%' or t.name '%xml%') , case when c.max_length = -1 10 else c.max_length end >= 6 -- search through sufficiently long column create table #results (rownum int identity(1,1), tablename varchar(256) collate database_default, colname varchar(256) collate database_default) declare @rownum_now int, @rownum_max int, @sqlcmd varchar(2000), @statusstring varchar(256) select @rownum_now = min(rownum), @rownum_max = max(rownum) #searchtable while @rownum_now <= @rownum_max begin select @sqlcmd = searchclause #searchtable rownum = @rownum_now insert #results exec(@sqlcmd) set @statusstring = cast(@rownum_now varchar(25))+'/'+cast(@rownum_max varchar(25))+', time: '+convert(varchar, getdate(), 120) raiserror(@statusstring, 10, 1) nowait select @rownum_now = @rownum_now + 1 end set nocount on select 'this table , column contains strings ".co.uk" , "@"' information, tablename, colname #results -- uncomment drop created temp tables --if object_id('tempdb..#searchtable') not null -- drop table #tablecols --if object_id('tempdb..#results') not null -- drop table #results

    what does, search db user-created tables schemas, have (n)char/(n)varchar/xml columns of sufficient length, , search each of them 1 1 until @ to the lowest degree 1 match found, moves next 1 on list. match defined string or xml cast string, contains text ".co.uk" , "@"-sign somewhere in there.

    it show progress of script (how many searchable table.column combinations have been found , 1 on list running, current timestamps downwards seconds) on messages tab. when ready, show tables , column names contained @ to the lowest degree 1 match.

    so list, you'll have search through tables , columns manually find how many , kinds of matches there are, , want do.

    edit: 1 time again disregarded using sysnames sysobjects, i'll modify later if needed.

    sql sql-server tsql

    autocad - Missing referencies in VBA: how to "include" modules? -



    autocad - Missing referencies in VBA: how to "include" modules? -

    i have legacy code - macro autocad - , got running on autocad 2015 enabled vba. there string-related function trim, mid, etc. , these functions missing references, vba can't find definitions. can find them manually in object browser, utilize strings.trim , works. how can avoide adding module name every phone call of function in vba? there include string'?

    edited: got compile error "can't find project or library" , here screen shot of references window after message:

    and microsoft word library selected default. double-checked, path correct. there no libraries missing prefix (or can't see it). maybe, of them must excluded since legacy code, not sure wild guessing fine in case, maybe there way problem libraries marked?

    it possible 1 of references (newer versions of autocad, or more microsoft word) has function or method names matching left, mid, trim , on, didn't exist before. create function names ambiguous. seek selectively removing references see effect on functions, or observe intellisense when typing mid see if has different meaning.

    consider writing wrappers string functions. example, write left function internally calls strings.left in module visible functions used.

    while doesn't solve problem immediately, allow minimise changes legacy code.

    vba autocad